<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */

class Registry{

	private static $vars = array();

	public function set($name, $value){
		self::$vars[$name] = $value;
	}
	
	public function get($var){
        if(isset(self::$vars[$var])){
            return self::$vars[$var];
        } else {
            throw new VException("Property ‘$var’ does not exist");
        }
    }
    
    public function getVars(){
    	return self::$vars;
    }

}

?>